package com.headerfooter.songhang.library;

import com.headerfooter.songhang.library.component.RecyclerItem;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * 单元测试
 */
public class ApplicationTest {
    /**
     * getPositionX单元测试
     */
    @Test
    public void testGetPositionX() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setPositionX(10);
        assertEquals(recyclerItem.getPositionX(), 10);
    }

    /**
     * getPositionY单元测试
     */
    @Test
    public void testGetPositionY() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setPositionY(5);
        assertEquals(recyclerItem.getPositionY(), 5);
    }

    /**
     * getWidth单元测试
     */
    @Test
    public void testGetWidth() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setWidth(200);
        assertEquals(recyclerItem.getWidth(), 200);
    }

    /**
     * getHeight单元测试
     */
    @Test
    public void testGetHeight() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setHeight(300);
        assertEquals(recyclerItem.getHeight(), 300);
    }

    /**
     * getMarginLeft单元测试
     */
    @Test
    public void testGetMarginLeft() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setMarginLeft(10);
        assertEquals(recyclerItem.getMarginLeft(), 10);
    }

    /**
     * getMarginRight单元测试
     */
    @Test
    public void testGetMarginRight() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setMarginRight(10);
        assertEquals(recyclerItem.getMarginRight(), 10);
    }

    /**
     * getMarginTop单元测试
     */
    @Test
    public void testGetMarginTop() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setMarginTop(10);
        assertEquals(recyclerItem.getMarginTop(), 10);
    }

    /**
     * getMarginBottom单元测试
     */
    @Test
    public void testGetMarginBottom() {
        RecyclerItem recyclerItem = new RecyclerItem();
        recyclerItem.setMarginBottom(10);
        assertEquals(recyclerItem.getMarginBottom(), 10);
    }
}